home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global lastName
- puppetSprite(the clickOn, 1)
- set nom to the name of cast the castNum of sprite the clickOn
- if nom = "singBtn" then
- repeat with f = value(lastName) to 6
- set the castNum of sprite the clickOn to the number of cast "stopBtn"
- updateStage()
- if value(f) < 6 then
- set w to string(f)
- set fld to lastName & "Fld"
- repeat with t = 2 to 7
- put the castNum of sprite t into line t of field fld
- end repeat
- go(w)
- play frame "sing"
- set fld to lastName & "Fld"
- repeat with t = 2 to 7
- puppetSprite(t, 1)
- set x to value(line t of field fld)
- set the castNum of sprite t to x
- end repeat
- updateStage()
- end if
- end repeat
- else
- set the castNum of sprite the clickOn to the number of cast "singBtn"
- updateStage()
- if soundBusy(2) then
- sound close 2
- updateStage()
- play done
- else
- puppetSound(0)
- play done
- end if
- end if
- end
-